/*    */ package com.qmsk.business.prize.winnder.controller;
/*    */ 
/*    */ import com.qmsk.business.prize.winnder.dao.WinnerDao;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import com.utils.web.RequestUtils;
/*    */ import com.utils.web.ResponseUtils;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.apache.log4j.Logger;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.web.bind.annotation.PathVariable;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/winner"})
/*    */ public class WinnerController
/*    */ {
/* 27 */   private static final Logger logger = Logger.getLogger(WinnerController.class);
/*    */ 
/*    */   @Autowired
/*    */   private WinnerDao winnerDao;
/*    */ 
/*    */   @RequestMapping(value={"find/winnerList/swptaksId/{swptaksId}/prizeLevelId/{prizeLevelID}"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void getShopList(HttpServletRequest request, HttpServletResponse response, @PathVariable("swptaksId") String swptaksId, @PathVariable("prizeLevelID") String prizeLevelID)
/*    */   {
/*    */     try
/*    */     {
/* 56 */       Map params = new HashMap();
/* 57 */       params.put("swptaksId", 
/* 58 */         swptaksId);
/* 59 */       params.put("memberId", RequestUtils.getString(request, "memberId"));
/* 60 */       params.put("prizeLvId", 
/* 61 */         prizeLevelID);
/*    */ 
/* 64 */       GsonEbRst gsonEbRst = this.winnerDao.getGsonOfAll(params);
/* 65 */       ResponseUtils.setResponseResult(gsonEbRst, response);
/*    */     } catch (Exception e) {
/* 67 */       logger.error(e);
/* 68 */       ResponseUtils.setErrorMsgResponse(
/* 69 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.prize.winnder.controller.WinnerController
 * JD-Core Version:    0.5.3
 */